import { http } from '@/utils/http'

export function usePreSalesEvaluateApi() {
  return {
    getPreSalesEvaluate(id: string) {
      return http.get<PreSalesForm>('/prod-api/admin-api/project/pre-sales-evaluate/get?id=' + id)
    },
    // 根据项目编号获取机会评审
    getOppoFormByProjNum(projectNumber: string) {
      return http.get<PreSalesForm>( `/prod-api/admin-api/project/pre-sales-evaluate/getByProjectNumber?projectNumber=${projectNumber}`)
    }
  }
}
